From: Chong Yidong Date: Tue, 30 Jan 2007 16:57:36 +0000 (+0000) Subject: (image-toggle-display): Add `disabled' property. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~30711 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=fd014ebf25216662c06644d820a165ab5af3fbfd;p=emacs.git (image-toggle-display): Add `disabled' property. --- diff --git a/lisp/image-mode.el b/lisp/image-mode.el index 97f1a7902dc..3e10afcbfeb 100644 --- a/lisp/image-mode.el +++ b/lisp/image-mode.el @@ -173,6 +173,11 @@ and showing the image as an image." (if (called-interactively-p) (message "Repeat this command to go back to displaying the file as text"))))) +(put 'image-toggle-display 'disabled "\ +WARNING: Displaying images can be a security risk. +Please make sure you're using up-to-date image libraries +and the images displayed come from a trusted source.") + (provide 'image-mode) ;; arch-tag: b5b2b7e6-26a7-4b79-96e3-1546b5c4c6cb